﻿using RpcCacheModular;
using RpcModular;

namespace RpcExtend.Service
{
    public class ExtendService
    {
        public static void InitService()
        {
            RpcClient.RpcClient.LoadModular<CacheModular>();
            RpcClient.RpcClient.LoadModular<ExtendModular>();
            RpcClient.RpcClient.Load("RpcExtend.Service");
            RpcClient.RpcClient.Start();
        }

        public static void CloseService()
        {
            RpcClient.RpcClient.Close();
        }
    }
}
